package yl.hs.bmipfull.pojo.finance;

import lombok.Data;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * MoneyTradeEntity 收付款交易信息
 * @category 财务管理——收付款交易信息
 * @author 谢景广
 * @date 2022-01-20
 */
@Data
@DBTable(disName = "收付款交易信息",mapCode = "view_receipt_payment")
public class MoneyTradeEntity extends ReceivePaymentRecordEntity {

    private Long id;
    @DBField(disName = "公司名称",mapCode = "companyName")
    private String companyName;

    @DBField(disName = "收/付款信息编号",mapCode = "sn")
    private String sn;
    /**
     * 合同sn
     */
    @DBField(disName = "合同编号",mapCode = "contractSN")
    private String contractSN;
    /**
     *收款时间
     */
    @DBField(disName = "收款时间",mapCode = "tradeTime")
    private Date tradeTime;
    /**
     * 收款金额
     */
    @DBField(disName = "收款金额",mapCode = "tradeAmount")
    private BigDecimal tradeAmount;
    /**
     * 收款方式
     */
    @DBField(disName = "收款方式",mapCode = "tradeWay")
    private String tradeWay;
    /**
     * 收款账户
     */
    @DBField(disName = "收款账户",mapCode = "tradeAccount")
    private String tradeAccount;
    /**
     * 收款银行
     */
    @DBField(disName = "收款银行",mapCode = "tradeBank")
    private String tradeBank;
    /**
     * 单据编号
     */
    @DBField(disName = "单据编号",mapCode = "orderNum")
    private String orderNum;
    /**
     * 备注
     */
    private String remark;

    /**
     * 交易类型-false 支出，true 收入
     */
    private boolean tradeType;

    /**
     * 文件sn
     */
    private String fileSN;

    /**
     * 状态
     */
    private short state;

    private String organizationCode;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
